package main

import (
	"fmt"
	"reflect"
)

func main(){
	// type convert
	x:=int16(2345)
	y:=int32(x)
	fmt.Println(y)
	a:=uint16(65000)
	b:=int16(a)
	fmt.Println(b)
	// type assert
	var c interface{} = 99
	d,success:=c.(int)
	if(success){
		fmt.Println(d)
	}
	// type define
	type Integer int
	// type check
	var z int
	fmt.Println(reflect.TypeOf(z).String() == "int")
}